/*
TODO(sqs): Suffix with "2" to avoid conflict with sourcegraph/sourcegraph component of same name
(which this was copy-pasted from).
*/

.popover-button2 {
    user-select: none;
    cursor: pointer;
    color: var(--body-color);
    background-color: transparent;
}

.popover-button2__container {
    display: flex;
    align-items: center;
}

.popover-button2__anchor {
    position: relative;
}

.popover-button2__btn {
    outline: none !important;
    box-shadow: none !important;
    border: solid 1px transparent;
    border-radius: 0.25rem;
    padding: 0.125rem 0.3rem;
}

.popover-button2__btn--link {
    text-decoration: none !important;
}

.popover-button2__btn:not(.popover-button2__btn--link) {
    padding-right: 0;
}

.popover-button2__btn:hover,
.popover-button2--open.popover-button2__btn:not(.popover-button2__btn--link) {
    border-color: var(--dropdown-border-color);
}

.popover-button2__icon {
    opacity: 0.4;
    cursor: pointer;
}

.popover-button2__icon .icon {
    height: 1.25rem;
    width: 1.25rem;
}

.popover-button2__icon--outside {
    margin-left: -0.185rem;
}

.popover-button2__anchor:hover .popover-button2__icon,
.popover-button2--open .popover-button2__icon {
    opacity: 0.75;
}

.popover-button2--open .popover-button2__icon {
    transform: rotate(180deg) translateY(-1px);
}

.popover-button2__popover {
    background-color: var(--dropdown-bg);
    border: solid 1px var(--dropdown-border-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    margin-left: 1px;
    margin-top: -1px;
}

.popover-button2--open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
